package com.hui.service;

import com.hui.dao.ArticleDao;
import com.hui.entiry.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 李昭辉
 * @Date: 2021/07/30/20:36
 * @Description:
 */
@Service("articleService")
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleDao articleDao;

    // 添加文章
    @Override
    public void saveArticle(Article article) {
        articleDao.insertArticle(article);
    }
}
